package org.example.emp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.emp.dto.EmployeeDto;
import org.example.emp.pojo.Employee;

import java.util.List;
import java.util.Optional;

//员工业务规则
public interface EmployeeService extends IService<Employee> {
    boolean addEmployee(Employee employee);
    boolean deleteEmployee(Integer employeeId);
    boolean updateEmployee(Employee employee);
    EmployeeDto getEmployeeById(Integer employeeId);
    List<Employee> getAllEmployees();
    boolean updateEmployeeDepartment(List<Integer> employeeIdList, Integer departmentId);
}
